package cn.bdqn.service;

import cn.bdqn.common.error.LoginError;
import cn.bdqn.entity.Staff;
import cn.bdqn.entity.vo.UserVo;

import java.util.List;

public interface StaffService {

    List<Staff> queryAll();
    
    Staff queryById(Integer staffId);

    Staff insert(Staff staff);

    Staff update(Staff staff);

    boolean deleteById(Integer staffId);

    UserVo login(String uname, String pwd) throws LoginError;
}
